package com.ad_hccm.service.impl.GeneralInformation;

import com.ad_hccm.dao.GeneralInformation.GeneralInformationDao;
import com.ad_hccm.domain.GeneralInformation.GeneralInformation;
import com.ad_hccm.service.GeneralInformation.GeneralInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 一般资料ServiceImpl
 */
@Service
public class GeneralInformationServiceImpl implements GeneralInformationService {

    @Autowired
    private GeneralInformationDao generalInformationDao;

    @Override
    public boolean save(GeneralInformation generalInformation) {
        return generalInformationDao.save(generalInformation);
    }

    @Override
    public boolean update(GeneralInformation generalInformation) {
        return generalInformationDao.update(generalInformation);
    }

    @Override
    public GeneralInformation getById(String id) {
        return generalInformationDao.getById(id);
    }

    @Override
    public List<GeneralInformation> getAll() {
        return generalInformationDao.getAll();
    }
}
